using Godot;
using System;

public partial class GameManager : Node
{
    public static GameManager Instance;
    public BaseLevelManager LevelManager;
    // public GameStatus GameStatus = GameStatus.LOCK_INPUT;
    public bool IsLockInput => lockTimes > 0;

    int lockTimes = 0;
    public int LockTimes => lockTimes;

    public void LockInput()
    {
        lockTimes++;
    }
    public void AllowInput()
    {
        lockTimes = Mathf.Max(--lockTimes, 0);
    }

    public override void _Ready()
    {
        base._Ready();
        Instance = this;
        GameUtil.LoadAllJsonData();
    }
}
